package com.cyy.common.pojo.vo.api;

import com.cyy.common.pojo.dto.ArchiveDto;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@Schema(name = "ArchiveVo", description = "文章归档展示")
public class ApiArchiveVo implements Serializable {
    @Serial
    private static final long serialVersionUID = -4423247258912071827L;

    @Schema(description = "格式化的日期 YY-MM")
    private String formatDate;

    @Schema(description = "文章数量")
    private Integer articleCount;

    @Schema(description = "对应的文章ID，只做查询定位，不做输出")
    @JsonIgnore
    private String articleIds;

    @Schema(description = "文章列表")
    private List<ArchiveDto> archives;
}
